import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import LoginView from '../views/LoginView.vue'
import TaskList from '../views/task/TaskList.vue'
import Student from '../views/test/Student.vue'
import Qiniu from '../views/test/Qiniu.vue'
import Qiniu2 from '../views/test/Qiniu2.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },{
      path: '/login',
      name: 'login',
      component: LoginView,
    },
    {
      path: '/task/list',
      name: 'taskList',
      component: TaskList
    },
    {
      path: '/test',
      name: 'test',
      children:[
        {
          path: 'student',
          name: 'student',
          component: Student
        },{
          path: 'qiniu',
          name: 'qiniu',
          component: Qiniu
        },{
          path: 'qiniu2',
          name: 'qiniu2',
          component: Qiniu2
        }
      ]

    }
  ],
})

export default router
